﻿using System;
using System.Web.UI;
using Ficharts.Net.Examples.Code;

namespace Ficharts.Net.Examples.Examples.Columns
{
    public partial class BarFullData : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Chart.ChartTitle.Title = "数值分布";
                Chart.XAxises.Add(new LinearAxis {Title = "分布数值"});
                Chart.YAxises.Add(new FieldAxis {Title = "数值项"});
                Chart.Series.Add(new Net.Bar {XField = "Value", YField = "Label", SingleColor = true});
                Chart.DataSource = ExampleData.DemoData2();
                Chart.DataBind();
            }
        }
    }
}